import HomeView from '../views/HomeView.vue'
const routes = [
  {
    path: '/logon',
    name: 'logon',
    component: () => import('../views/loing.vue'),
    meta: {
      title: "登录页",
    }
  },
  {
    path: '/',
    name: 'home',
    component: HomeView,
    redirect: '/logon',
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('../views/home.vue'),
        meta: {
          title: "首页",
        }
      },
      {
        path: '/checkTheIst',
        name: 'checkTheIst',
        component: () => import('../views/checkTheIst.vue'),
        meta: {
          title: "查单",
        }
      },
      {
        path: '/revise',
        name: 'revise',
        component: () => import('../views/revise.vue'),
        meta: {
          title: "查单修改",
        }
      },
      {
        path: '/readMode',
        name: 'readMode',
        component: () => import('../views/readMode.vue'),
        meta: {
          title: "读取模式",
        }
      },
      {
        path: '/programmedMode',
        name: 'programmedMode',
        component: () => import('../views/programmedMode.vue'),
        meta: {
          title: "自编模式",
        }
      },
      {
        path: '/searchView',
        name: 'searchView',
        component: () => import('../views/searchView.vue'),
        meta: {
          title: "搜索",
        }
      },
      {
        path: '/about',
        name: 'about',
        component: () => import('../views/AboutView.vue'),
        meta: {
          title: "历史",
        },
      },
      {
        path: '/information',
        name: 'Information',
        component: () => import('../views/userInformation.vue'),
        meta: {
          title: "个人信息",
        },
      },
      {
        path: '/clockIn',
        name: 'clockIn',
        component: () => import('../views/clockIn.vue'),
        meta: {
          title: "首页",
        },
      }
    ]
  },
]
export default routes